package com.woniuxy.service;

import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.entity.RbacManager;

import java.util.List;

/**
 * @Author: 马宇航
 * @Todo: 这个单类，没有继承接口的类！被代理类！
 * @DateTime: 22/08/22/0022 15:17
 * @Component: 成都蜗牛学苑
 **/
public class RbacManagerServiceCgLib {
    private RbacManagerDao rbacManagerDao;

    public void setRbacManagerDao(RbacManagerDao rbacManagerDao) {
        this.rbacManagerDao = rbacManagerDao;
    }
    public List<RbacManager> findOneByLikeName(String name){
        List<RbacManager> oneByLikeName = rbacManagerDao.findOneByLikeName(name);
        oneByLikeName.forEach(System.out::println);
        return oneByLikeName;
    }
}
